package com.yxw.yx_hotel.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yxw.yx_hotel.entity.YxStayInEntity;
import com.yxw.yx_hotel.entity.YxStayRecordEntity;
import com.yxw.yx_hotel.entity.YxStayWaitEntity;
import com.yxw.yx_hotel.vo.UserTokenVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *  待住入住/取消记录管
 * @author liuxin
 * @date 2024.01.18
 */
@Repository
public interface StayRecordMapper extends BaseMapper<YxStayRecordEntity> {


    /**
     * 新增入住/取消入住的记录
     * @param list
     * @param status
     * @param user
     */
    void insertByBatch(@Param("list") List<YxStayWaitEntity> list,@Param("status")  int status,@Param("user") UserTokenVo user);
}
